import { postAction, getAction, deleteAction } from '@/util/request'

export function findList(data) {
  return getAction('/sys/quartz/job/findList', data)
}

export function addOrUpdate(data) {
  return postAction('/sys/quartz/job/addOrUpdate', data)
}

export function deleteJob(data) {
  return deleteAction('/sys/quartz/job/deleteJob', data)
}

export function trigger(data) {
  return postAction('/sys/quartz/job/trigger', data)
}

export function resume(data) {
  return postAction('/sys/quartz/job/resume', data)
}

export function pause(data) {
  return postAction('/sys/quartz/job/pause', data)
}

